package com.kpiJavaTraining.bogdan.module2;

import java.io.Serializable;

public abstract class Question implements Serializable{

	private static final long serialVersionUID = 3329077081559964625L;
	private String question;
	private int score;
	
	public Question(String question){
		this.question = question;
	}
	
	public abstract void answer(String answer);
	
	public void setScore(int score){
		this.score = score;
	}
	
	public int getScore(){
		return score;
	}
	
	public void clear(){
		setScore(0);
	}
	
	public String toString(){
		return question;
	}
}
